package com.lyc.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "gaode.map")
public class GaodeMapConfig {
    private String apiKey;
    private String apiBaseUrl = "https://restapi.amap.com/v3";

    // 获取高德地图API密钥
    public String getApiKey() {
        return apiKey;
    }

    // 设置高德地图API密钥
    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    // 获取高德地图API基础URL
    public String getApiBaseUrl() {
        return apiBaseUrl;
    }

    // 设置高德地图API基础URL
    public void setApiBaseUrl(String apiBaseUrl) {
        this.apiBaseUrl = apiBaseUrl;
    }
}